import request from '@/utils/request'

// 查询订单地址快照列表
export function listOrder_address(query) {
  return request({
    url: '/order_address/order_address/list',
    method: 'get',
    params: query
  })
}

// 查询订单地址快照详细
export function getOrder_address(orderId) {
  return request({
    url: '/order_address/order_address/' + orderId,
    method: 'get'
  })
}

// 新增订单地址快照
export function addOrder_address(data) {
  return request({
    url: '/order_address/order_address',
    method: 'post',
    data: data
  })
}

// 修改订单地址快照
export function updateOrder_address(data) {
  return request({
    url: '/order_address/order_address',
    method: 'put',
    data: data
  })
}

// 删除订单地址快照
export function delOrder_address(orderId) {
  return request({
    url: '/order_address/order_address/' + orderId,
    method: 'delete'
  })
}
